#include <SFML/Window.hpp> 
#include <SFML/OpenGL.hpp>
#include <SFML/Graphics.hpp>
#include "yuMain.h"
#include "yuDraw.h"
yuMain* yMain = NULL;
yuDraw* yDraw = NULL;

int main() {

	// Definitions
	const std::string FONT_DEFAULT = "data/fonts/default.ttf";


	bool bremain = true; // Game Loop

	// Window
	sf::Window yuWindow(sf::VideoMode(1024, 768, 32), "YUME");
	glClearColor(0, 0, 0, 0);

	sf::Image sprTest;
	yMain->SpriteLoad(sprTest, "data/test.png");
	

	while(bremain){ // Step loop

		// Handle window events
		sf::Event myevent;
		while (yuWindow.GetEvent(myevent)){
			if (myevent.Type == sf::Event::Closed){
				bremain = false;
				yuWindow.Close();
			}
		}


		//Drawing event
		glClear(GL_COLOR_BUFFER_BIT); // Set background color

		yDraw->DrawSprite(sprTest, 32, 32, 1, 1, 1, 0);

		yuWindow.Display(); // Update window each step
	}
}